include_directories(
        ${PROJECT_BINARY_DIR}/util
        ${PROJECT_BINARY_DIR}/core
)

link_directories(
        ${PROJECT_BINARY_DIR}/util
        ${PROJECT_BINARY_DIR}/core
)

set(main_src shallow_water_main.F90)

if(double_precision)
        set_source_files_properties(${main_src}
                PROPERTIES
                COMPILE_FLAGS -r8
        )
endif(double_precision)

add_executable(fpsw ${main_src})

target_link_libraries(fpsw util fpcore)

install(TARGETS fpsw RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX})
